package com.zhuiyun.project.api.poetryAuthor.mapper;

import com.zhuiyun.project.api.poetryAuthor.entity.PoetryAuthor;
import com.zhuiyun.project.common.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface PoetryAuthorMapper extends BaseMapper<PoetryAuthor> {
    /**
     *
     * @Author shy
     * @Date 2023/12/14 10:49 TODO 查询所有作者
      * @param
     * @return List<PoetryAuthor>
     */
    @Select("select author_id,author_name from poetry_author where del_flag =0")
    List<PoetryAuthor> GetAllAuthor();
    /**
     *
     * @Author shy
     * @Date 2023/12/14 10:49 TODO 根据条件分页查询作者 xml层
      * @param p
     * @return List<PoetryAuthor>
     */
    List<PoetryAuthor> selectAuthor(PoetryAuthor p);
}
